package Assignment;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        //用户依次录入三个整数
        Scanner scanner = new Scanner(System.in);

        //直接定义最大数字
        int min = 999999999;
        for (int i = 1; i <= 3; i++) {
            System.out.println("请输入第" + i + "位数：");
            int number = scanner.nextInt();

            //三元运算
            min = number < min ? number : min;
        }
        //求出最小数
        System.out.println("最小数：" + min);
    }
}
